
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript" src="D:/Evan/Program Files/project/workspace/GeTools4me/war/blog/js/common.js"></script>
<style type="text/css">

textarea{
	width: 50%;
}
</style>
<title>Unicode String converter</title>
</head>
<body>


Unicode:<br>
<textarea id="unicode" rows="8"  onkeyup="toStr('string',this.value);">
</textarea>
<hr>
String:<br>
<textarea id="string" rows="8" onkeyup="toUnicode('unicode',this.value);">
</textarea>


<script type="text/javascript">
	// change the value of hidden input 
	function toStr(id,str){
		document.getElementById(id).value =  Common.getStringFromUnicode(str);
	}
	function toUnicode(id,str){
		document.getElementById(id).value =  Common.getUnicodeFromString(str);
	}
</script>



</body>
</html>